package com.study.forumsystemproject.service;

import com.study.forumsystemproject.model.Article;
import com.study.forumsystemproject.model.LoginInfo;
import com.study.forumsystemproject.model.User;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpSession;

import java.util.List;

/**
 * program: forum-system-project
 * <p>
 * description: 用户逻辑层
 * <p>
 * author: xiaoxie
 * <p>
 * create: 2024-08-15 17:13
 **/
public interface IUserService {
    void register(User user);
    LoginInfo login(LoginInfo user,HttpSession session);
    void getCaptcha(HttpSession session, HttpServletResponse response);
    User getUserInfo(Long id);
    /**
     * Description: addOneArticleCountById
     * Param: id
     * @param count
     * return: void
     * Author: xiaoxie
     * Date: 20:32 2024/8/18
    */
    void addOneArticleCountById(Long id,Integer count);
    /**
     * Description: addOneArticleCountById
     * Param: id
     * return: void
     * Author: xiaoxie
     * Date: 20:32 2024/8/18
     */
    void subOneArticleCountById(Long id);

    void modifyUser(User user);
    void modifyPassword(Long id, String oldPassword, String newPassword);
 }
